package com.picturetransform;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.view.View;

public class BitMapView extends View{

	Bitmap mBitmap = null;
	
	public BitMapView(Context context, Bitmap mBmp) {
		super(context);
		this.mBitmap = mBmp;
	}
	
	protected void onDraw(Canvas canvas){
		
		Paint paint = new Paint();
		paint.setFilterBitmap(true);
		
		Rect dest = new Rect(0,0,this.getWidth(),(this.getHeight()));
		canvas.drawBitmap(mBitmap,null,dest,paint);
		
	}

}
